//
//  Player.m
//  MMLOOK
//
//  Created by dllo on 15/10/10.
//  Copyright © 2015年 武俊娥. All rights reserved.
//

#import "Player.h"

@implementation Player


-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        
    }
    
    return self;
}


+(Class)layerClass
{
    return [AVPlayerLayer class];
}


//返回当前播放位置
- (AVPlayer *)player {
    
    
    return [(AVPlayerLayer *)[self layer] player];
}


-(void)setPlayer:(AVPlayer *)player
{
    
    [(AVPlayerLayer *)[self layer]setPlayer:player];
    
}




/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
